package com.sky.mapper;

import com.sky.entity.Region;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface RegionMapper {

    /**
     * 查询所有领区
     * @return
     */
    List<Region> list();
    @Select("select * from region where id = #{id}")
    Region selectById(Long id);
}
